package com.ran.entity.DO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class UserDO {
    //唯一id
    @TableId("id")
    private Long id;

    //用户名
    @TableField("user_name")
    private String userName;

    //密码
    @TableField("password")
    private String password;

    //状态(0离线 1在线 2删除)
    @TableField("password")
    private String status;

    public UserDO(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }
}
